﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="TH_ChiTietDonDatHangAdmin.ascx.cs" Inherits="admin_MyUserControls_TH_ChiTietDonDatHangAdmin" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Label ID="orderIdLabel" runat="server" 
           CssClass="AdminTitle" Text="Order #000" />
<br /><br />
<table class="AdminPageText">
  <tr>
    <td width="130">Thành tiền:</td>
    <td>
      <asp:Label ID="totalAmountLabel" runat="server" 
CssClass="ProductPrice" />
    </td>
  </tr>
  <tr>
    <td width="130">Ngày đặt hàng:</td>
    <td>
      <asp:TextBox ID="dateCreatedTextBox" runat="server" Width="400px" />
      <asp:ImageButton runat="Server" ID="ImageButton1" ImageUrl="../images/Calendar.png" AlternateText="Click here to display calendar" Width="20" Height="20" style="margin-bottom:-6px;"/>
      <cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="dateCreatedTextBox" PopupButtonID="ImageButton1">
      </cc1:CalendarExtender>
    </td>
  </tr>
  <tr>
    <td width="130">Ngày giao hàng:</td>
    <td>
      <asp:TextBox ID="dateShippedTextBox" runat="server" Width="400px" />
      <asp:ImageButton runat="Server" ID="ImageButton2" ImageUrl="../images/Calendar.png" AlternateText="Click here to display calendar" Width="20" Height="20" style="margin-bottom:-6px;"/>
      <cc1:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="dateShippedTextBox" PopupButtonID="ImageButton2">
      </cc1:CalendarExtender>
    </td>
  </tr>
  <tr>
    <td width="130">Xác nhận:</td>
    <td>
      <asp:CheckBox ID="verifiedCheck" runat="server" />
    </td>
  </tr>
  <tr>
    <td width="130">Đã giao:</td>
    <td>
      <asp:CheckBox ID="completedCheck" runat="server" />
    </td>
  </tr>
  <tr>
    <td width="130">Ghi chú:</td>
    <td>
      <asp:TextBox ID="commentsTextBox" runat="server" Width="400px" />
    </td>
  </tr>
  <tr>
    <td width="130">Tên khách hàng:</td>
    <td>
      <asp:TextBox ID="customerNameTextBox" runat="server" Width="400px" />
    </td>
  </tr>
  <tr>
    <td width="130">Địa chỉ người nhận:</td>
    <td>
      <asp:TextBox ID="shippingAddressTextBox" runat="server" Width="400px" />
    </td>
  </tr>
</table>
<br />
<asp:Button ID="editButton" runat="server" CssClass="SmallButtonText" 
            Text="Edit" Width="100px" onclick="editButton_Click" />
<asp:Button ID="updateButton" runat="server" CssClass="SmallButtonText" 
            Text="Update" Width="100px" onclick="updateButton_Click" />
<asp:Button ID="cancelButton" runat="server" CssClass="SmallButtonText" 
            Text="Cancel" Width="100px" onclick="cancelButton_Click" /><br />
<asp:Button ID="markVerifiedButton" runat="server" CssClass="SmallButtonText" 
            Text="Đã xác nhận" Width="310px" 
    onclick="markVerifiedButton_Click" /><br />
<asp:Button ID="markCompletedButton" runat="server" CssClass="SmallButtonText"
            Text="Đã giao hàng" Width="310px" 
    onclick="markCompletedButton_Click" /><br />
<asp:Button ID="btnInHoaDon" runat="server" CssClass="SmallButtonText"
            Text="In hóa đơn" Width="310px" onclick="btnInHoaDon_Click" /><br />
<br />
<asp:Label ID="Label13" runat="server" CssClass="AdminPageText" 
Text="Đơn đặt hàng bao gồm các sản phẩm sau:" Font-Underline="True" />
<br />
<br />
<asp:GridView ID="grid" runat="server" AutoGenerateColumns="False" 
BackColor="White" Width="100%">
  <Columns>
    <asp:BoundField DataField="TenSanPham" HeaderText="Tên sản phẩm" 
                    ReadOnly="True" SortExpression="TenSanPham" />
    <asp:BoundField DataField="SoLuong" HeaderText="Số lượng" 
                    ReadOnly="True" SortExpression="SoLuong" />
    <asp:BoundField DataField="Gia" HeaderText="Giá" DataFormatString="{0:#,##0;Nothing}"
                    ReadOnly="True" SortExpression="Gia" />
    <asp:BoundField DataField="ThanhTien" HeaderText="Tổng tiền" DataFormatString="{0:#,##0;Nothing}"
                    ReadOnly="True" SortExpression="ThanhTien" />
  </Columns>
</asp:GridView>
<br />